package com.biglead.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.biglead.demo.pojo.Goods;
import com.biglead.demo.vo.GoodsVo;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {

    List<GoodsVo> findGoodsVo();
    GoodsVo findGoodsVoByGoodsId(Long goodsId);

    int updateGoodsStock(Goods goods);
}
